<template>
  <div>
    <h1>app</h1>
    <parent-a></parent-a>
  </div>
</template>

<script>
import ParentA from "./components/ParentA.vue";
export default {
  data() {
    return {
      msg: "$root可否传值",
      money: "1亿",
    };
  },
  provide() {
    return {
      money: this.money,
    };
  },
  components: {
    ParentA,
  },
};
</script>

<style lang="scss" scoped>
</style>